package ascloud.biz.ctrl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import ascloud.biz.model.Legacy;
import ascloud.biz.service.LegacyService;

@RestController
@RequestMapping("/legacy")
public class LegacyController {

	@Autowired
	private LegacyService legacyService;

	@GetMapping("/all")
	public List<Legacy> all() {
		return this.legacyService.getAll();
	}

}
